Skip to content

Added debug/logging feature#33

Merged
willnode merged 2 commits intolobovkin:mainfrom
DeBuXer:logging_feature
Feb 1, 2025
Merged

Added debug/logging feature#33
willnode merged 2 commits intolobovkin:mainfrom
DeBuXer:logging_feature

Conversation

@DeBuXer
Copy link
Contributor

@DeBuXer DeBuXer commented Oct 31, 2024

With this option, you can enable logging/debugging, which will be written to the console.log(). This can be useful if a redirect isn't working correctly, as it allows you to better see what's happening within the application. By default, this function is disabled.

There are 3 debug levels, where level 1 provides the least information and level 3 provides the most.

Example output:

[2024-10-31 15:32:46] Received HTTP request for test.domain.tld
[2024-10-31 15:32:46] findTxtRecord for test.domain.tld: forward-domain=https://www.example.com
[2024-10-31 15:32:46] No cache found for test.domain.tld, storing new data

@willnode willnode merged commit b642987 into lobovkin:main Feb 1, 2025
3 checks passed
@willnode
Copy link
Collaborator

willnode commented Feb 1, 2025

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants